﻿<Window x:Class="RaidTeamManager.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:ignore="http://www.ignore.com"
        mc:Ignorable="d ignore"
        Height="500"
        Width="500"
        Title="Raid Team Manager"
        DataContext="{Binding Main, Source={StaticResource Locator}}" FocusManager.FocusedElement="{Binding ElementName=CharacterNameTextBox}" DataContextChanged="MainWindow_OnDataContextChanged">
    
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Skins/MainSkin.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="0.10*"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Margin="5" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top">
            <Label>Character Name</Label>
            <TextBox Name="CharacterNameTextBox" Width="100" Text="{Binding CharacterName}" VerticalContentAlignment="Center" />
            <Label>Realm</Label>
            <TextBox Width="100" Text="{Binding RealmName}" VerticalContentAlignment="Center"></TextBox>
            <Button Margin="10,0,0,0" Command="{Binding FindCommand}" Content="Find"></Button>
        </StackPanel>
        <DataGrid Grid.Row="1" ItemsSource="{Binding Raiders}" AutoGeneratingColumn="DataGrid_OnAutoGeneratingColumn" AlternatingRowBackground="Gainsboro"  AlternationCount="2">           
        </DataGrid>
    </Grid>
</Window>
